home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / BOOTSEC.ZIP / BOOTSEC.H < prev    next >
Text File  |  1993-06-10  |  779b  |  37 lines

  1.  
  2. // structure definitions taken from Microsoft MS-DOS 
  3. // Programmer's Reference, volume 5
  4. typedef struct tagBOOTSECTOR
  5. {
  6.     BYTE bsJump[3];
  7.     BYTE bsOemName[8];
  8.     WORD bsBytePerSec;
  9.     BYTE bsSecPerCluster;
  10.     WORD bsResSectores;
  11.     BYTE bsFAT;
  12.     WORD bsRootDirEnts;
  13.     WORD bsSectors;
  14.     BYTE bsMedia;
  15.     WORD bsFATsecs;
  16.     WORD bsSecPerTrack;
  17.     WORD bsHeads;
  18.     DWORD bsHiddenSecs;
  19.     DWORD bsHugeSectoes;
  20.     BYTE bsDriveNumber;
  21.     BYTE bsReserved;
  22.     BYTE bsBootSig;
  23.     DWORD bsVolumeID; // serial number
  24.     BYTE bsVolumeLabel[11];
  25.     BYTE bsFileSysType[8];
  26.  
  27. } BOOTSECTOR, FAR *LPBOOTSECTOR;
  28.  
  29.  
  30. typedef struct tagDISKIO
  31. {
  32.     DWORD diStartSector;
  33.     WORD  diSectors;
  34.     LPSTR diBuffer;
  35. } DISKIO, NEAR * NPDISKIO;
  36.  
  37.